package interfaces;

public interface TableFile {
	
	/**
	 * Returns a byte array containing the byte data
	 * associated with a certain string.
	 */
	public byte[] getBytes(String str);
	
	/**
	 * Returns a string connected to a binary value.
	 */
	public String getString(byte[] bin);
	
	/**
	 * Returns the length in bytes of the largest hexadcimal
	 * entry in the tablefile.
	 */
	public int getHexMaxLength();
	
	/**
	 * Returns the length in characters of the longest text entry
	 * in the tablefile.
	 */
	public int getTextMaxLength();
	
	/**
	 * Returns the name of the charset used
	 * to read text values.
	 */
	public String getCharset();
	
	/**
	 * Removes all values where the key or the
	 * value is of length n or higher.
	 */
	public void removeValues(int n);
}
